/*  reset  */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #f6f7f8;
    color: #222;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.nav {
    height: 64px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.container {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.article {
    flex: 1;
}

.sidebar {
    width: 240px;
}

.side-block {
    height: 120px;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}

.article-meta span {
    margin-right: 20px;
}

.article-content {
    font-size: 16px;
    color: #333;
    white-space: pre-wrap;
}

/* 评论区 */
.comment-section {
    border-top: 1px solid #e0e0e0;
    padding: 24px;
}

.comment-header {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.comment-header small {
    color: #999;
    font-weight: normal;
}

.comment-post {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
}

.post-box {
    flex: 1;
}

.post-box textarea {
    width: 100%;
    height: 80px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.post-action {
    text-align: right;
    margin-top: 8px;
}

.btn-post {
    padding: 6px 16px;
    background: #00a1d6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-post:hover {
    background: #0093c1;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sub-comment {
    list-style: none;
    margin-top: 12px;
    padding-left: 52px;
}

.sub-comment .comment-item {
    padding: 12px 0;
    border-bottom: none;
}

.comment-main {
    flex: 1;
}

.comment-user {
    font-size: 13px;
    margin-bottom: 4px;
}

.name {
    font-weight: 500;
    margin-right: 8px;
}

.time {
    color: #999;
}

.comment-content {
    font-size: 15px;
    margin: 6px 0;
    white-space: pre-wrap;
}

.comment-action {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    user-select: none;
}

.comment-action span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-action span:hover {
    color: #111;
}

.comment-action .icon {
    width: 16px;
    height: 16px;
    fill: #999;
}

.comment-action .like.active svg {
    fill: #fb7299;
    color: #fb7299;
}




/* 遮罩 */
.reply-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:flex;
    align-items:flex-end;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:opacity .3s, visibility .3s;
    z-index:999;
  }
  .reply-overlay.show{
    opacity:1;
    visibility:visible;
  }
  
  /* 底部弹窗 */
  .reply-sheet{
    width:100%;
    max-width:600px;
    background:#fff;
    border-radius:30px 30px 0 0;
    padding:20px 24px 24px;
    transform:translateY(100%);
    transition:transform .3s ease-out;
  }
  .reply-overlay.show .reply-sheet{
    transform:translateY(0);
  }
  
  /* 输入区 */
  .reply-top{ display:flex; flex-direction:column; gap:8px; }
  .reply-prefix{ font-size:14px; user-select:none; }
  .reply-gray{ color:#999; }
  .reply-name{ color:#1e88e5; }
  .reply-textarea{
    width:100%;
    height:80px;
    padding:10px;
    border:1px solid #e0e0e0;
    border-radius:12px;
    resize:none;
    font-family:inherit;
    font-size:15px;
  }
  
  /* 底部栏 */
  .reply-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:12px;
  }
  .reply-emo{
    display:flex;
    gap:8px;
    font-size:22px;
    cursor:pointer;
  }
  .reply-send{
    padding:8px 20px;
    background:#1e88e5;
    color:#fff;
    border:none;
    border-radius:20px;
    font-size:14px;
    cursor:pointer;
  }
  .reply-send:hover{ background:#1976d2; }